package com.itheima.service.mongo;

import com.itheima.domain.mongo.Movement;
import com.itheima.domain.vo.PageBeanVo;
import org.bson.types.ObjectId;

/**
 * @Author 请不要叫我高司令
 * @Date 2022/3/17 16:01
 * @Version 1.0
 */

//动态模块
public interface MovementService {

    //发布动态
    void saveMovement(Movement movement);

    //查询我的动态
    PageBeanVo findMyMoveMentByPage(Long userId, Integer pageNum, Integer pageSize);

    //查询好友的动态
    PageBeanVo findFriendMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    // 查询推荐动态
    PageBeanVo findRecommendMovementByPage(Long userId, Integer pageNum, Integer pageSize);

    //根据id查找动态
    Movement findById(ObjectId objectId);

    //后台查询动态列表
    PageBeanVo findMovementByPage(Long userId, Integer state, Integer pageNum, Integer pageSize);

    // 更新动态
    void update(Movement movement);




}
